package com.xqiapp.jsp.mybatis;

import com.xqiapp.bean.Page;
import com.xqiapp.bean.Datax;

import java.util.List;

/**
 *
 * 用datax配置数据传输
 *
 * Created by rwrwd7 on 2017/9/13.
 */
public interface IMybatisDao extends IBaseDao {

    <E> E getObject(String statement, Datax parameter);

    <E> E getObject(String statement, E parameter);

    Datax get(String statement, Datax parameter);

    int delete(String statement, Datax parameter);

    <E> List<E> find(String statement, Datax parameter);

    <E> List<E> find(String statement, Object parameter);

    <E> Page<E> page(String pageStatement, Datax parameter, int current, int pagesize);

}
